<template lang="pug">
  kalix-dialog.user-add(title='查看' bizKey="createexam" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
    div.el-form(slot="dialogFormSlot")
      el-form-item(label="考试名称" prop="name" v-bind:label-width="labelWidth" )
        el-input(v-model="formModel.name" readonly)
      el-form-item(label="考试时间" prop="examStart" v-bind:label-width="labelWidth" )
        kalix-datetime-picker(v-model="formModel.examStart" placeholder="请选择考试开始时间" style="width:100%" readonly)
      el-form-item(label="考试时长(分钟)" prop="duration" v-bind:label-width="labelWidth")
        el-input-number(v-model="formModel.duration" v-bind:min="30" :max="300" v-bind:disabled="true")
      el-form-item(label="最少答题时长（分钟）" prop="examMinTime" v-bind:label-width="labelWidth")
        el-input-number(v-model="formModel.examMinTime" v-bind:min="1" :max="300" v-bind:disabled="true")
      el-form-item(label="考卷模板" prop="paperName" v-bind:label-width="labelWidth" )
        el-input(v-model="formModel.paperName" readonly)
      el-form-item(label="及格线" prop="passScore" v-bind:label-width="labelWidth")
        el-input-number(v-model="formModel.passScore" v-bind:min="1" v-bind:max="150" v-bind:disabled="true")
      el-form-item(label="考试科目" prop="subject" v-bind:label-width="labelWidth")
        el-input(v-model="formModel.subject" readonly)
      el-form-item(label="考生分配状态" prop="distributeStat" v-bind:label-width="labelWidth")
        el-input(v-model="formModel.distributeStat" v-bind:disabled="true")
      el-form-item(label="教师分配状态" prop="teacherDistribute" v-bind:label-width="labelWidth")
        el-input(v-model="formModel.teacherDistribute" v-bind:disabled="true")
</template>

<script type="text/ecmascript-6">
  import FormModel from './examModel'

  export default {
    name: 'ExamView',
    data() {
      return {
        formModel: Object.assign({}, FormModel),
        labelWidth: '180px'
      }
    }
  }
</script>

<style scoped>

</style>
